<!doctype html>
<html class="x-admin-sm">
	{include file="public/_header" /}
	<body class="index">
		<!-- 顶部开始 -->
		<div class="container">
			<div class="logo">
				<a href="./index.html">电子班牌</a></div>
			<div class="left_open">
				<a><i title="展开左侧栏" class="iconfont">&#xe699;</i></a>
			</div>
			<ul class="layui-nav left fast-add" lay-filter="">
				<li class="layui-nav-item">
					<a href="javascript:;">新乐一中</a>
					<dl class="layui-nav-child">
						<!-- 二级菜单 -->
						<dd>
							<a onclick="xadmin.open('最大化','http://www.baidu.com','','',true)">
								<i class="iconfont">&#xe6a2;</i>弹出最大化</a></dd>
						<dd>
							<a onclick="xadmin.open('弹出自动宽高','http://www.baidu.com')">
								<i class="iconfont">&#xe6a8;</i>弹出自动宽高</a></dd>
						<dd>
							<a onclick="xadmin.open('弹出指定宽高','http://www.baidu.com',500,300)">
								<i class="iconfont">&#xe6a8;</i>弹出指定宽高</a></dd>
						<dd>
							<a onclick="xadmin.add_tab('在tab打开','member-list.html')">
								<i class="iconfont">&#xe6b8;</i>在tab打开</a></dd>
						<dd>
							<a onclick="xadmin.add_tab('在tab打开刷新','member-del.html',true)">
								<i class="iconfont">&#xe6b8;</i>在tab打开刷新</a></dd>
					</dl>
				</li>
			</ul>
			<ul class="layui-nav right" lay-filter="">
				<li class="layui-nav-item to-index">
					<a href="/" target="_blank">前台首页</a>
				</li>
				<li class="layui-nav-item to-index">
					<a href="javascript:;" >更新缓存</a>
					<dl class="layui-nav-child">
						<!-- 二级菜单 -->
						<dd>
							<a onclick="clearCache(1)">清除所有数据</a>
						</dd>
						<dd>
							<a onclick="clearCache(2)">清除缓存文件</a>
						</dd>
						<dd>
							<a onclick="clearCache(3)">清除缓存数据</a>
						</dd>
					</dl>
				</li>
				<li class="layui-nav-item">
					<a href="javascript:;">您好，超级admin</a>
					<dl class="layui-nav-child">
						<!-- 二级菜单 -->
						<dd>
							<a onclick="xadmin.open('个人信息','http://www.baidu.com')">个人信息</a></dd>
						<dd>
							<a onclick="xadmin.open('切换帐号','http://www.baidu.com')">切换帐号</a></dd>
						<dd>
							<a href="javascript:;" onclick="outLogin()">退出</a></dd>
					</dl>
				</li>
			</ul>
		</div>
		<!-- 顶部结束 -->
		<!-- 中部开始 -->
		<!-- 左侧菜单开始 -->
		{include file="public/_menu" /}
		<!-- <div class="x-slide_left"></div> -->
		<!-- 左侧菜单结束 -->
		<!-- 右侧主体开始 -->
		<div class="page-content">
			<div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
				<ul class="layui-tab-title">
					<li class="home">
						<i class="layui-icon">&#xe68e;</i>我的桌面</li>
				</ul>
				<div class="layui-unselect layui-form-select layui-form-selected" id="tab_right">
					<dl>
						<dd data-type="this">关闭当前</dd>
						<dd data-type="other">关闭其它</dd>
						<dd data-type="all">关闭全部</dd>
					</dl>
				</div>
				<div class="layui-tab-content">
					<div class="layui-tab-item layui-show">
						<iframe src="{:url('admin/index/welcome')}" frameborder="0" scrolling="yes" class="x-iframe"></iframe>
					</div>
				</div>
				<div id="tab_show"></div>
			</div>
		</div>
		<div class="page-content-bg"></div>
		<style id="theme_style"></style>
		<script type="text/javascript">
			var layerFrameConfig = {
				w:$(window).width(),
				h:$(window).height()
			};
			$(window).resize(function () {
				layerFrameConfig.w = $(window).width()
				layerFrameConfig.h = $(window).height()
			});
			function changeLang(type){
				$.post("{:url('admin/Common/lang')}",{type:type},function(res){
					if(res.status == 1){
						layer.msg("设置成功",{time:500,icon:1},function(){
							parent.location.reload()
						})
						
					}else{
						layer.msg("设置失败")
					}
				})
			}
			function clearCache(type){
				$.post("{:url('admin/Common/clearCache')}",{type:type},function(res){
					if(res.status == 1){
						layer.msg(res.message,{time:500,icon:1},function(){
							parent.location.reload()
						})
					}else{
						layer.msg(res.message)
					}
				})
			}
			function outLogin(){
				$.post("{:url('admin/Common/outLogin')}",{},function(res){
					if(res.status == 0){
						layer.msg(res.message,{time:500,icon:1},function(){
							parent.location.reload()
						})
					}else{
						layer.msg(res.message)
					}
				})
			}
			$(function(){
				$.post("https://mp.uxuj.cn/admin/api/school/index",{},function(res){
					console.log(res)
					// if(res.status == 0){
					// 	layer.msg(res.message,{time:500,icon:1},function(){
					// 		parent.location.reload()
					// 	})
					// }else{
					// 	layer.msg(res.message)
					// }
				})
			})
		</script>
		<!-- 右侧主体结束 -->
		<!-- 中部结束 -->
	</body>

</html>